<?php

/**
 * ArticleCategory form.
 *
 * @package    IPLIFE
 * @subpackage form
 * @author     alexey.shapran@gmail.com
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ArticleCategoryForm extends BaseArticleCategoryForm
{
	public function configure()
	{
		$this->validatorSchema->setPostValidator(new sfValidatorDoctrineUnique(array('model'=>'ArticleCategory','column'=>'alias')));
		$this->setValidator('alias', new sfValidatorRegex(array('pattern'=>'/[^a-zA-Z0-9-_]/', "must_match"=>false)));
	}
}
